package com.chacha.utils;

import java.util.Properties;

public class NimConfig {
	
	Properties prop;
	
	public NimConfig(){
		try {
			prop = new Properties();
			prop.load(getClass().getClassLoader().getResourceAsStream("/resources/nim-config.properties"));
		} catch (Exception e) {
			
			e.printStackTrace();
		}
	}

	public String getProperty(String property) {
		return prop.getProperty(property);
	}
	
	public int getIntProperty(String property) {
		int test =0;
		try {
			test=Integer.parseInt(prop.getProperty(property));
		} catch (Exception e) {}
		return test;
	}

	
	
}
